package main

import (
    "log"
    "encoding/json"
    "github.com/zjiecode/wxpusher-client/go/wxpusher"
)

type Ac struct {
    Ad string `json:"ad"`
    Bz Bc `json:"bc"`
}
type Bc struct {
    Xd string `json:xd`
}

func main() {
    ac := Ac{}
    err := json.Unmarshal([]byte(`{"ad":"xxx","bc":{"xd": "xxxx1"}}`), &ac)
    if nil != err {
        panic(err)
    }
    log.Println(">>>>>>>>>>>>>>>>ac", ac)
    appToken := "AT_ee7deABoR656gompF4jeHmranMDdESjx"
    uId := "UID_aX7enqQ563Gg4wwuU1xdbDH61MrH"
    result, err := wxpusher.NewMessage(appToken).SetContent("文本消息").AddUId(uId).Send()
    log.Println("result:", result, "err:", err)

    a := 2
    for i := 0; i < a ; i++ {
        if 1 == i {
            goto END
        }
        log.Println("START-----！")
        END:
        log.Println("END-----！")
    }
}
